package com.biaobiaoqi.scoreanalysis.administrator.action;

import java.util.List;

import javax.annotation.Resource;

import com.biaobiaoqi.scoreanalysis.hibernate.bean.ClazzType;
import com.biaobiaoqi.scoreanalysis.service.IClazzTypeService;
import com.opensymphony.xwork2.ActionSupport;

public class NewClazz extends ActionSupport {
 	private static final long serialVersionUID = 8349289451371634338L;
 	private List<ClazzType> types;
 	
 	@Resource
 	IClazzTypeService clazzTypeService;
 	public String execute() {
 		types = clazzTypeService.listClazzType();
 		System.out.println(types.size());
 		return SUCCESS;
 	}
 	
 	public IClazzTypeService getClazzTypeService() {
		return clazzTypeService;
	}
	public void setClazzTypeService(IClazzTypeService clazzTypeService) {
		this.clazzTypeService = clazzTypeService;
	}

	public List<ClazzType> getTypes() {
		return types;
	}

	public void setTypes(List<ClazzType> types) {
		this.types = types;
	}
}
